package com.atguigu.gmall.cart.client.impl;

import com.atguigu.gmall.cart.client.CartFeignClient;
import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.cart.CartInfo;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class CartFeignClientImpl implements CartFeignClient {


    @Override
    public Result addToCart(Long skuId, Integer skuNum) {
        return Result.fail().message("服务降级了");
    }

    @Override
    public Result<Void> deleteCart(String skuId) {
       return Result.<Void>fail().message("服务降级了");
    }

    @Override
    public Result<List<CartInfo>> getCheckedCart() {
        return Result.<List<CartInfo>>fail().message("服务降级了");
    }
}
